TRTEXEC=/usr/src/tensorrt/bin/trtexec

for ONNX in $(ls msda_*.onnx)
do 

if [[ $ONNX == *"noQDQ"* ]]; then
  BUILDER_TYPE=--best
else
  BUILDER_TYPE=--stronglyTyped
fi

$TRTEXEC \
$BUILDER_TYPE \
--onnx=$ONNX \
--saveEngine=$ONNX.plan \
--builderOptimizationLevel=3 \
--loadInputs=input_sampling_locations:input_sampling_locations.bin \
--dumpLayerInfo \
--dumpProfile \
--verbose \
--separateProfileRun \
--useCudaGraph \
--staticPlugins=./lib/libmsda.so \
--noDataTransfers \
>$ONNX.plan.log

done
